#include "Point.h"
Point::Point(float x_, float y_, float z_, int w_,int h_)
{
	x 			= x_;
	y 			= y_;
	z 			= z_;
	w 			= w_;
	h 			= h_;
	pos(0) 		= x;
	pos(1) 		= y;
	pos(2) 		= z;
	keypoint	= 0;
}
Point::Point()
{
	x 			= 0;
	y 			= 0;
	z 			= 0;
	w 			= 0;
	h 			= 0;
	pos(0) 		= 0;
	pos(1) 		= 0;
	pos(2) 		= 0;
	keypoint	= 0;
}
Point::~Point()
{
}

float Point::distance(Point * p)
{
	float dx = x - p->x;
	float dy = y - p->y;
	float dz = z - p->z;
	return sqrt(dx*dx+dy*dy+dz*dz);
}

void Point::print()
{
	//printf("Point w:%i,h:%i,x:%f,y:%f,z:%f\n",w,h,x,y,z);
}
